package com.open.capacity.common.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
    * 答卷表
    */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "exam_answer")
public class ExamAnswer {
    /**
     * 答卷id
     */
    @TableId(value = "exanid", type = IdType.AUTO)
    private Integer exanid;

    /**
     * 试卷和学生关系id
     */
    @TableField(value = "pausid")
    private Integer pausid;

    /**
     * 考题id
     */
    @TableField(value = "quesid")
    private Integer quesid;

    /**
     * 答案
     */
    @TableField(value = "answer")
    private String answer;

    /**
     * 是否正确
     */
    private Integer result;
}